<template>
  <div class="merchant">
    <p class="title">
      商户收益
    </p>

    <div class="content">
      <div class="content-title">
        <span style="margin-left: 3rem;">商家名称</span>
        <span style="margin-left: 16rem;">地址</span>
        <span style="margin-left: 20rem;">电话</span>
        <span style="margin-left: 7.4rem;">次数</span>
        <span style="margin-left: 4rem;">激活</span>
        <span style="margin-left: 3rem;">金额</span>
      </div>

      <div class="content-info">
        <div class="content-item" v-for="item in list">
          <div>{{item.shop}}</div>
          <div>{{item.addres}}</div>
          <div>{{item.phone}}</div>
          <div>{{item.cishu}}</div>
          <div>{{item.jihuo}}</div>
          <div>{{item.jine}}</div>
        </div>
      </div>
    </div>



  </div>
</template>

<script>
  export default {
    props: ['id'],
    data() {
      return {
        list: [
          {
            shop:'牛肉罩饼',
            addres: '高新区黄河大道152号底商',
            phone: '15526542569',
            cishu: '16次',
            jihuo: '90次',
            jine: '200元'
          },
          {
            shop:'兰州拉面',
            addres: '高新区黄河大道142号底商',
            phone: '13322654256',
            cishu: '10次',
            jihuo: '20次',
            jine: '600元'
          },
          {
            shop:'牛肉板面',
            addres: '高新区黄河大道123号',
            phone: '15524583265',
            cishu: '8次',
            jihuo: '32次',
            jine: '300元'
          },
          {
            shop:'大盘鸡',
            addres: '高新区黄河大道135号底商',
            phone: '18845895625',
            cishu: '11次',
            jihuo: '20次',
            jine: '364元'
          },
          {
            shop:'九宫格',
            addres: '高新区黄河大道137号底商',
            phone: '13758965426',
            cishu: '5次',
            jihuo: '20次',
            jine: '150元'
          },
          {
            shop:'海底捞',
            addres: '高新区黄河大道126号底商',
            phone: '13654895265',
            cishu: '23次',
            jihuo: '112次',
            jine: '900元'
          },
          {
            shop:'365便利店',
            addres: '高新区黄河大道128号底商',
            phone: '15542568954',
            cishu: '20次',
            jihuo: '114次',
            jine: '1132元'
          },
          {
            shop:'如家酒店',
            addres: '高新区黄河大道136号底商',
            phone: '15526542569',
            cishu: '16次',
            jihuo: '90次',
            jine: '200元'
          },
          {
            shop:'牛大姐熟食',
            addres: '高新区黄河大道136号底商',
            phone: '15526542569',
            cishu: '16次',
            jihuo: '90次',
            jine: '200元'
          },
          {
            shop:'小白烧烤',
            addres: '高新区黄河大道136号底商',
            phone: '15526542569',
            cishu: '16次',
            jihuo: '90次',
            jine: '200元'
          },
        ]
      }
    },

    mounted() {

    },

    methods: {

    }
  }
</script>

<style scoped>
  .merchant {
    height: 100%;
  }

  .title {
    color: #fff;
    font-size: 2rem;
    padding: 0;
    margin: 0;
    margin-left: 1rem;
    line-height: 4rem;
    height: 4rem;
  }

  .content {
    height: calc(100% - 4rem);
  }

  .content-title {
    width: 100%;
    height: 4.7rem;
    background-color: #0F439B;
    color: #02F0FD;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
  }

  .content-info {
    width: 100%;
    height: calc(100% - 4.7rem);
    overflow: hidden;
  }

  .content-item {
    font-size: 1.8rem;
    color: #157BEA;
    margin: 1.3rem 0;
  }

  .content-item div {
    display: inline-block;
    text-align: center;
    border-left: 1px solid #157BEA;
  }

  .content-item div:nth-child(1) {
    width: 12rem;
    border: none;
  }

  .content-item div:nth-child(2) {
    width: 31rem;
  }

  .content-item div:nth-child(3) {
    width: 14rem;
  }

  .content-item div:nth-child(4) {
    width: 7rem;
  }

  .content-item div:nth-child(5) {
    width: 7rem;
  }

  .content-item div:nth-child(6) {
    width: 7rem;
  }





</style>
